package com.linsir.lin.service;

import com.linsir.lin.dto.GridDTO;
import com.linsir.lin.dto.MemberDTO;
import com.linsir.lin.dto.OrganizationDTO;
import com.linsir.lin.pojo.Member;
import com.linsir.lin.pojo.Organization;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * @author ：linsir
 * @date ：Created in 2021/7/9 10:06
 * @description：员工接口
 * @modified By：
 * @version: 1.0.0
 */
public interface MemberService {
    GridDTO<MemberDTO> grid(OrganizationDTO organizationDTO) throws InvocationTargetException, IllegalAccessException;

    GridDTO<MemberDTO> grid();

    /**
     * 通过id获取
     * @param organId
     * @return
     */
    GridDTO<MemberDTO> grid( Integer organId) throws InvocationTargetException, IllegalAccessException;


    MemberDTO toDTO(Member member) throws InvocationTargetException, IllegalAccessException;

    List<Organization>  getOrganizationsByMember(Member member);
}
